const express = require('express');

const app = express();

const Websocket = require('ws');

let wss = new Websocket.Server({
  port:4000
})

wss.on('connection', function(ws) {
  ws.on('message', function(e) {
    console.log(e);
    ws.send('滚😡');
  })
})